//author:kakake
var Model = /** @class */ (function () {
    function Model() {
    }
    return Model;
}());

//author:kakake
var Common = /** @class */ (function () {
    function Common() {
    }
    return Common;
}());

//author:kakake
var tsotcdrugController = /** @class */ (function () {
    function tsotcdrugController() {
        this.data = {
            dbConn: TSLobsterAPI.Program.GetDbConn()
        };
    }
    tsotcdrugController.prototype.getotcdrugs = function () {
        var drugname = TSLobsterAPI.Program.RequestQuery('drugname', '');
        var pageInfo = {
            key: "药品名称",
            page: TSLobsterAPI.Program.RequestQuery('page', 0),
            perPage: TSLobsterAPI.Program.RequestQuery('limit', 10),
            totalRecord: 0,
            totalPage: 0
        };
        var dbparams = {
            drugname: '%' + drugname + '%'
        };
        var strsql = "SELECT 药品名称,药品规格 ,药品类型,OTC类别,备注 FROM 中国OTC目录库 where 药品名称 like @drugname ";
        var list = TSLobsterAPI.DbHelper.DbGetJsonData(this.data.dbConn, strsql, dbparams, pageInfo);
        return { list: list, count: pageInfo.totalRecord };
    };
    return tsotcdrugController;
}());

//author:kakake
var tsotcdrugDao = /** @class */ (function () {
    function tsotcdrugDao() {
        this.dbConn = TSLobsterAPI.Program.GetDbConn();
    }
    return tsotcdrugDao;
}());

//author:kakake
var tsotcdrugService = /** @class */ (function () {
    function tsotcdrugService() {
    }
    return tsotcdrugService;
}());

